package user;

import java.util.ArrayList;

public class User {
	private Integer user_id;
	private String user_name;
	private String user_password;
	private ArrayList<User> users;

	public User(){
		users = new ArrayList<User>();
		users.add(new User(1,"a","123456"));
		users.add(new User(2,"b","123456"));
		users.add(new User(3,"c","123456"));
		users.add(new User(4,"d","123456"));
		users.add(new User(5,"e","123456"));
		users.add(new User(6,"f","123456"));
		users.add(new User(7,"g","123456"));
		users.add(new User(8,"h","123456"));
		users.add(new User(9,"i","123456"));
		users.add(new User(10,"j","123456"));
	}

	public User(Integer user_id, String user_name, String user_password) {
		super();
		this.user_id = user_id;
		this.user_name = user_name;
		this.user_password = user_password;
	}

	public ArrayList<User> getUsers() {
		return users;
	}

	public void setUsers(ArrayList<User> users) {
		this.users = users;
	}

	public Integer getUser_id() {
		return user_id;
	}

	public void setUser_id(Integer user_id) {
		this.user_id = user_id;
	}

	public String getUser_name() {
		return user_name;
	}

	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}

	public String getUser_password() {
		return user_password;
	}

	public void setUser_password(String user_password) {
		this.user_password = user_password;
	}
	
	public ArrayList<User> getUserArrayList(){
		ArrayList<User> users = new ArrayList<User>();
		users.add(new User(1,"a","123456"));
		users.add(new User(2,"b","123456"));
		users.add(new User(3,"c","123456"));
		users.add(new User(4,"d","123456"));
		users.add(new User(5,"e","123456"));
		users.add(new User(6,"f","123456"));
		users.add(new User(7,"g","123456"));
		users.add(new User(8,"h","123456"));
		users.add(new User(9,"i","123456"));
		users.add(new User(10,"j","123456"));
		return users;
	}
	
	
	public String toString() {
		return "<tr><td align='center'>"+ user_id + "</td><td align='center'>" + user_name+"</td><td align='center'>"
				+ user_password + "</td></tr>";
	}
}

